package com.ling.pl.autoproject.definition.view.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

public class ViewAction {
    @Column(name = "ENTITY_ID", length = 36)
    @ModelProperty(comment = "实体id")
    String entityId;

    @Column(name = "NAME", length = 150)
    @ModelProperty(comment = "名称")
    String name;

    @Column(name = "CODE", length = 150)
    @ModelProperty(comment = "界面行为代码")
    String code;

    @Column(name = "ICON", length = 150)
    @ModelProperty(comment = "图标")
    String icon;

    @Column(name = "TITLE", length = 150)
    @ModelProperty(comment = "标题语言资源")
    String title;

    @Column(name = "TITLE_I18N", length = 150)
    @ModelProperty(comment = "标题语言资源")
    String titleI18n;

    @Column(name = "VIEW_ACTION_TYPE", length = 150)
    @ModelProperty(comment = "界面行为类型")
    @Dict(code = "builder.view.viewActionType", des = "系统预定义,前台调用,后台调用,工作流前台调用,工作流后台调用")
    String viewActionType;

    @Column(name = "VIEW_ACTION_DATA_TYPE", length = 150)
    @ModelProperty(comment = "数据目标")
    @Dict(code = "builder.view.viewActionDataType", des = "单项数据,单项数据（主键）,多项数据,多项数据（主键）,无数据")
    String viewActionDataType;

    @Column(name = "ENTITY_OPERATION_ID", length = 36)
    @ModelProperty(comment = "实体数据操作标识")
    String entityOperationId;

    @Column(name = "TIP", length = 150)
    @ModelProperty(comment = "提示信息")
    String tip;

    @Column(name = "TIP_I18N", length = 150)
    @ModelProperty(comment = "提示信息")
    String tipI18n;
}
